﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using Hibiku.Twitter;

namespace Hibiku.Models
{
    [DataContract]
    public class ApplicationConfigurationModel
    {
        [DataMember]
        public AuthorizationResponse Authorization
        {
            get;
            set;
        }

        [DataMember]
        public ICollection<FilterRuleModel> FilterRules
        {
            get;
            set;
        }

        public ApplicationConfigurationModel()
            : this(new AuthorizationResponse("", "", new TokenPair("", "")), new List<FilterRuleModel>(0))
        {
        }

        public ApplicationConfigurationModel(AuthorizationResponse authorization, IEnumerable<FilterRuleModel> filterRules)
        {
            Authorization = authorization;

            FilterRules = new List<FilterRuleModel>(filterRules);
        }
    }
}
